package com.zh.domain.Model;


import lombok.Data;

import java.io.Serializable;

@Data
public class IpDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private String ip;
    private String region;
    private String cityInfo;

    public String getRealRegion() {
        try {
            return region.split("\\|")[1];
        } catch (ArrayIndexOutOfBoundsException ex) {
            return region;
        }
    }
}
